package com.project.bean;

/**
 * 采购订单实体类
 */
public class BuyInfoBean {
    /**编号*/
    private int id;
    /**对应采购信息*/
    private BuyBean buy;
    /**采购商品*/
    private ProductBean product;
    /**采购数量*/
    private int num;

    public BuyInfoBean() {
    }

    public BuyInfoBean(int buyId, int productId, int num) {
        this.buy = new BuyBean();
        this.buy.setId(buyId);
        this.product = new ProductBean();
        this.product.setId(productId);
        this.num = num;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public BuyBean getBuy() {
        return buy;
    }

    public void setBuy(BuyBean buy) {
        this.buy = buy;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "BuyInfoBean{" +
                "id=" + id +
                ", buy=" + buy +
                ", product=" + product +
                ", num=" + num +
                '}';
    }
}
